git-pthread_self
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 23 Jul 2024 17:09:58 +0000 (19:09 +0200)
committerAurelien Jarno <aurel32@debian.org>
Tue, 23 Jul 2024 17:09:58 +0000 (19:09 +0200)
commitcb43c889740f04a29ad64ff9ab55132629eae222
tree25b8488e812380c7979e9c33081b35e1de932531
parent13ceb616c47cd8b3dc6f156de5dfb6549a3fc5d8
git-pthread_self

commit 0e75c4a4634f44ad24a65fda01f571781ac79d5f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Jul 17 14:06:25 2024 +0200

    hurd: Fix pthread_self() without libpthread

    5476f8cd2e68 ("htl: move pthread_self info libc.") moved the htl
    pthread_self() function from libpthread to libc, replacing the previous libc
    stub that just returns 0. And 53da64d1cf36 ("htl: Initialize ___pthread_self
    early") added initialization code which is needed before being able to
    call pthread_self. It is currently in libpthread, and thus never called
    before programs can call pthread_self from libc, which then segfaults
    when accessing _pthread_self()->thread.

    This moves the initialization to libc itself, as initialized variables, so
    pthread_self can always be called fine.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_self.diff
htl/Versions
sysdeps/mach/hurd/htl/pt-pthread_self.c
sysdeps/mach/hurd/htl/pt-sysdep.c
sysdeps/mach/hurd/htl/pt-sysdep.h